import 'package:flutter/material.dart';

class MyDrawer extends StatelessWidget {
  const MyDrawer({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Drawer(
      child: MediaQuery.removePadding(
          context: context,
          removeTop: true,
          child: Column(
            children: [
              Padding(
                padding: const EdgeInsets.fromLTRB(20, 50, 0, 10),
                child: Row(
                  children: [
                    ClipOval(
                      child: Image.asset(
                        "assets/images/mao.jpg",
                        height: 80,
                      ),
                    ),
                    Padding(
                        padding: const EdgeInsets.only(left: 30),
                        child: Text(
                          "MMM",
                          style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20),
                        ))
                  ],
                ),
              ),
              Divider(thickness: 1),
              Expanded(
                  child: ListView(children: [
                ListTile(leading: Icon(Icons.add), title: Text("Add account")),
                ListTile(leading: Icon(Icons.settings), title: Text("Manager accounts"))
              ]))
            ],
          )),
    );
  }
}
